package user;

import book.BookList;
import ioperations.IOPeration;

public abstract class User {
    protected String name;
    protected IOPeration[] ioPerations;

    //为了子类当中帮助初始化父类成员
    public User(String name){
        this.name=name;
    }

    public abstract int menu();

    public void doIoperation(int choice, BookList bookList){
        ioPerations[choice].work(bookList);
    }
}
